﻿--[[
   @brief    descprtion
   @author   rickonzhang
   @version  1.0
   @date     2015-06-10
--]]

social_tips_desc = 
{
    module_name = "social_tips",
    events = 
    {
        {
            c_event = 
            {
                {
                    id = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_GET_MY_SOCIAL_TEST_INFO,
                    callback = "social_tips_control.on_get_my_social_test_info"
                },
            },
            lua_event = 
            {
                {
                    id = group_event.SHOW_MESSAGE_BOX_DIALOG,
                    callback = "social_tips_control.show_message_box"
                },
                {
                    id = group_event.SHOW_NOTIFY_COUNT_FLAG,
                    callback = "social_tips_control.on_show_notify_number"
                },
                {
                    id = "group_event.SHOW_PERSONAL_CENTER",
                    callback = "social_tips_control.show_personal_center"
                },
            },
            lua_file = "social\\social_tips\\control.lua"
        },

        {
            c_event = 
            {        
                {
                    id  = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_RECVIE_FRIEND_REPORT,
                    callback = "social_summarize_info_tips_wnd.on_recv_friend_report"
                },          
            }, 
            lua_event = 
            {
                {
                    id = "social_event.OPEN_FRIENDS_INFO_TIPS_WND",
                    callback = "social_summarize_info_tips_wnd.show_wnd"
                },
                {
                    id = social_event.SOCIAL_FRIEND_COUNT_CHANGE,
                    callback = "social_summarize_info_tips_wnd.on_friend_count_change"
                },
            },
            reg_service = 
            {
                {
                    id = 'i_service_need_show_friend_list',
                    callback = 'social_summarize_info_tips_wnd.need_show_friend_list'
                },
            },
            listen_broadcast = 
            {
                {
                    id = 'i_service_lol_game_status_changed',
                    callback = "social_summarize_info_tips_wnd.on_lol_game_staus_changed"
                },
            },
            lua_file = "social\\social_tips\\social_friends_info_tips_wnd.lua"
        }, 

        {
            c_event = 
            {
                {
                    id = ierd_tgp.game_library.MAIN_MARQUEE_MSG_LIST,
                    callback = "social_push_tips_mgr.on_recv_social_push_tips"
                },
            
                {
                    id = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_IM_INITED,
                    callback = "social_push_tips_mgr.on_im_inited"
                },
            },
            lua_event =
            {
                {
                    id = "social_event.CLOSE_SOCIAL_AD_TIPS",
                    callback = "social_push_tips_mgr.close_social_ad_tips"
                },
                {
                    id = social_event.CLICK_SOCIAL_SESSION_TAB_BTN,
                    callback = "social_push_tips_mgr.click_session_tab_btn"
                },
                {
                    id = social_event.CLICK_SOCIAL_CONTACT_TAB_BTN,
                    callback = "social_push_tips_mgr.click_contact_tab_btn"
                },
            },
            lua_file = "social\\social_tips\\social_push_tips_mgr.lua"
        },  
        {
            c_event = 
            {
                {
                    id  = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_RECVIE_FRIEND_REPORT,
                    callback = "social_title_msg_tips_mgr.on_recv_friend_report"
                },
                {
                    id = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_GET_FRIEND_LIST,
                    callback = "social_title_msg_tips_mgr:on_get_friend_list_done"
                },
            },
            lua_event = 
            {
                {
                    id = group_event.FRIEND_NEW_MESSAGE_COME,
                    callback = "social_title_msg_tips_mgr.recv_friend_new_msg"
                },
                {
                    id = group_event.GROUP_NEW_MESSAGE_COME,
                    callback = "social_title_msg_tips_mgr.recv_group_new_msg"
                },
                {
                    id = group_event.SHOW_NOTIFY_COUNT_FLAG,
                    callback = "social_title_msg_tips_mgr.recv_notify"
                },
                {
                    id = group_event.CLEAR_MSG_BOX_NOTIFY_REDDOT,
                    callback = "social_title_msg_tips_mgr.open_message_box"
                },

                {
                    id = social_event.CLICK_GAME_TAB_BTN,
                    callback = "social_title_msg_tips_mgr.click_game_tab_btn"
                },
                {
                    id = social_event.CLICK_SOCIAL_SESSION_TAB_BTN,
                    callback = "social_title_msg_tips_mgr.click_session_tab_btn"
                },
                {
                    id = social_event.CLICK_SOCIAL_CONTACT_TAB_BTN,
                    callback = "social_title_msg_tips_mgr.click_contact_tab_btn"
                },
                {
                    id = mainframe_event.OPEN_SOCIAL_PANEL,
                    callback = "social_title_msg_tips_mgr.open_social_panel"
                },
                {
                     id = mainframe_event.CHANGE_MAINFRAME_MODE,
                     callback = "social_title_msg_tips_mgr.change_mainframe_mode"
                },
                {
                    id = social_event.TALK_ACTIV_SESSION_CHANGED,
                    callback = "social_title_msg_tips_mgr.on_switch_talk_session"
                },
            },
            reg_service =
            {
                {
                    id = 'i_service_social_network_update_tips_msg_info',
                    callback = 'social_title_msg_tips_mgr.update_tips_msg_info'
                }
            },
            listen_broadcast = 
            {
                {
                    id = 'i_broadcast_social_mainwnd_show',
                    callback = 'social_title_msg_tips_mgr.social_mainwnd_show'
                },
            },
            lua_file = "social\\social_tips\\social_title_msg_tips_mgr.lua"
        },    
    }
}

desc_mgr.add(social_tips_desc)

ierd_tgp.tpf_ui.Require("social\\social_tips\\social_push_tips_mgr.lua");
ierd_tgp.tpf_ui.Require("social\\social_tips\\social_title_msg_tips_mgr.lua");